package com.leinao.category.model;

/**
 *
 * @Description 算法、数据集等主体分类信息实体
 * @author lizi
 * @date 2019/03/06 下午6:48
 * @Version 1.0
 */
public class Category {

    /**
     * 分类ID
     */
	private Long id;

    /**
     * 父分类，顶级分类parent_id＝0
     */
    private Long parentId;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 类型: 1-算法数据集
     */
    private Integer type;

    /**
     * 分类标签来源类型: 0-全局自定义，1-系统提供
     */
    private Integer customType;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCustomType() {
        return customType;
    }

    public void setCustomType(Integer customType) {
        this.customType = customType;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", customType=" + customType +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}